package cn.edu.scau.cmi.zenghanxiong.composite.safe;

public abstract class SafeComponent {
	private String name;
    private SafeComponent parent;

    public SafeComponent(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SafeComponent getParent() {
        return this.parent;
    }

    public void setParent(SafeComponent parent) {
        this.parent = parent;
    }
    
    public String toString() {
        return this.name;
    }

}
